<HTML><HEAD>
<!--
    ---------------
    Marquee Message
    ---------------
-->

<SCRIPT LANGUAGE="JavaScript"><!-- hide from old browsers

/*
    THE JAVASCRIPT COOKBOOK by Erica Sadun, webrx@mindspring.com
    Copyright (c)2000 by Charles River Media.  All Rights Reserved.
    
    This applet can only be re-used or modifed by license holders of the
    JavaScript Cookbook CD-ROM.  Credit must be given in the source
    code and this copyright notice must be maintained. If you do
    not hold a license to the JavaScript Cookbook, you may NOT
    duplicate or modify this code for your own use.

    Use at your own risk. No warranty is given or implied of the suitability 
    of this applet for any specific application. Neither Erica Sadun nor 
    Charles River Media will be held responsible for any unwanted effects 
    due to the use of this applet or any derivative. 
*/

var init_msg = "YOUR MESSAGE HERE." // add punctuation to the end

var str = "" // string shown
var msg = "" // rest of message
var leftmsg = "" // left hand part of message


// set the message for the status bar
function setMessage()
{
    if (msg == "") // end of message.  start over
    {
        str = " "         // make it start with the first letter
        msg = init_msg    // reset the waiting letters
        leftmsg = ""      // no message on the left
    }
    
    if (str.length == 1) // time to scroll another letter
    {
        
        while (msg.substring(0, 1) == " ")
        {
            leftmsg = leftmsg + str            // store the current letter
            str = msg.substring(0, 1)          // pull off the next non-blank letter 
            msg = msg.substring(1, msg.length) // shorten remaining message
        }
        leftmsg = leftmsg + str            // store the current letter
        str = msg.substring(0, 1)          // pull off the next non-blank letter 
        msg = msg.substring(1, msg.length) // shorten remaining message
        for (var ii = 0; ii < 120; ii++) 
            {str = " " + str}           // pad the new string
    }
    else
    {
        str = str.substring(10, str.length) // decrease str little by little
    }

    // Update the Status Bar and set the timeout
    window.status = leftmsg + str
    JSCTimeOutID = window.setTimeout('setMessage()',100)
}

<!-- done hiding --></SCRIPT></HEAD>

<BODY bgcolor="ffffff" link="0000ff" vlink="770077"
onload="JSCTimeOutID = window.setTimeout('setMessage()',500);">
    
<FONT COLOR="007777"><H1><IMG SRC="../GRAFX/UTENS.JPG" WIDTH=80 HEIGHT=50
ALIGN = LEFT>Marquee #3</H1></FONT>

    <BLOCKQUOTE><FONT COLOR="770000">
        This script scrolls a message from right to left, a
        character at a time. Make sure to add at least one
    punctuation character at the end to let the message be
    read fully.
    </FONT></BLOCKQUOTE>
    <BR><BR>
    
    <FONT COLOR="007777"><H2>Discussion</H2></FONT>
    <FONT SIZE=4>
        Like previous scripts, this JavaScript sets an initial
        timeout in the BODY that is renewed in a function call.
    </FONT>        


<h5>Copyright &copy;1996 by Charles River Media, All Rights Reserved</h5>
</BODY>
</HTML>